package com.s63.ssm.singleton;

/**
 * 静态内部类单例
 */
public class Singleton3 {

    private Singleton3() {
        System.out.println("Singleton3实例被创建");
    }

    private static class Helper {
        private static Singleton3 INSTANCE = new Singleton3();
    }

    public static Singleton3 getInstance() {
        return Helper.INSTANCE;
    }
}
